﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib;

namespace Ng
{
    public sealed class NgProvider : IPlugin
    {
        public IPluginHost Host { get; set; }

        public void Initialize()
        {
        }

        public void DeInitialize()
        {
        }

        public void Dispose()
        {
        }

        public List<string> GetArticles(int count)
        {
            var articleProvider = new ArticleProvider();

            return articleProvider.GetArticles(count);
        }

        public string Name
        {
            get { return "Независимая газета"; }
        }

        public WordStatArticle GetArticleData(string url)
        {
            var articleProvider = new ArticleProvider();

            return articleProvider.GetArticleData(url);
        }
    }
}
